package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class ActivityListBean implements Serializable, IJsonParser{

	/**
	 * {
    "perv_cursor": 0,
    "next_cursor": 3,
    "total_number": 3,
    "invitation_list": [
        {
            "activity_id": 7,
            "title": "啊实打实的" 
        },
        {
            "activity_id": 11,
            "title": "啊实打实的" 
        },
        {
            "activity_id": 12,
            "title": "啊实打实的" 
        }
    ]
}
	 */
	private static final long serialVersionUID = 1L;
	private int perv_cursor;
	private int next_cursor;
	private int total_number;
	private List<InvitationBean> invitation_list;
	private String desc ;
	private String error ;
	

	public String getDesc() {
		return desc;
	}


	public String getError() {
		return error;
	}


	public int getPerv_cursor() {
		return perv_cursor;
	}


	public int getNext_cursor() {
		return next_cursor;
	}


	public int getTotal_number() {
		return total_number;
	}


	public List<InvitationBean> getInvitation_list() {
		return invitation_list;
	}


	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson gson = null;
		if (null != json) {
			GsonBuilder b = new GsonBuilder();
			gson = b.create();
			return gson.fromJson(json, ActivityListBean.class);
		}
		return null;
	}
}
